package tests

//动词
var (
	//behavior:动作行为动词
	//mood:心理情绪动词
	//appear 出现消失动词
	//judge 判断动词
	//want 能愿意动词
	//tend 趋向动词
	WordAction=map[string]string{
		"走":"behavior",
		"坐":"behavior",
		"看":"behavior",
		"听":"behavior",
		"打":"behavior",
		"拿":"behavior",
		"批评":"behavior",
		"宣传":"behavior",
		"保卫":"behavior",
		"学习":"behavior",
		"唱":"behavior",
		"叫":"behavior",
		"爱":"mood",
		"恨":"mood",
		"怕":"mood",
		"想":"mood",
		"喜欢":"mood",
		"害怕":"mood",
		"想念":"mood",
		"觉得":"mood",
		"有":"appear",
		"在":"appear",
		"存":"appear",
		"存在":"appear",
		"出现":"appear",
		"失去":"appear",
		"消失":"appear",
		"是":"judge",
		"能":"want",
		"会":"want",
		"愿意":"want",
		"敢":"want",
		"应该":"want",
		"要":"want",
		"上":"tend",
		"下":"tend",
		"进":"tend",
		"出":"tend",
		"回":"tend",
		"过":"tend",
		"起":"tend",
		"开":"tend",
		"来":"tend",
		"上来":"tend",
		"下来":"tend",
		"进来":"tend",
		"出来":"tend",
		"回来":"tend",
		"过来":"tend",
		"起来":"tend",
		"开来":"tend",
		"去":"tend",
		"上去":"tend",
		"下去":"tend",
		"进去":"tend",
		"出去":"tend",
		"回去":"tend",
		"过去":"tend",
		"开去":"tend",
	}
)

var ActionWordIndex = make(map[string]map[string]string)

func buildActionIndex()  {
	for k,v := range WordAction {
		prefix := string([]rune(k)[0])
		if ActionWordIndex[prefix] == nil {
			ActionWordIndex[prefix] = make(map[string]string)
		}
		ActionWordIndex[prefix][k] = v
	}

	return
}
